package com.lxz.aimedicalassistantbackend.config;

import dev.langchain4j.memory.chat.MessageWindowChatMemory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 小新
 * @Date: 2025/4/25 18:53
 * @Description: 聊天记忆配置类
 * @Version: v1.0
 */
@Configuration
public class MemoryChatAssistantConfig {
    @Bean
    public MessageWindowChatMemory chatMemory(){
        return MessageWindowChatMemory.withMaxMessages(10);
    }
}
